import QtQuick
import QtQuick.Layouts
import Fk
import Fk.Pages
import Fk.Pages.LunarLTK

GraphicsBox {
  id: root

  width: 300
  height: 150

  property string result: ""

  Rectangle {
    id: armisticeText
    width: parent.width
    height: 75
    color: "transparent"
    anchors.top: parent.top
    anchors.horizontalCenter: parent.horizontalCenter
    Text {
      anchors.horizontalCenter: parent.horizontalCenter
      anchors.top: parent.top
      anchors.topMargin: 30
      text: Lua.tr("The opponent proposed a draw")
      color: '#dabb92'
      font.pixelSize: 35
      font.bold: true
    }
  }

  
  
  Row {
    spacing: 40
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.top: armisticeText.bottom
    anchors.topMargin: 10

    MetroButton {
      text: Lua.tr("Agree")

      onClicked: {
        root.result = "ok"
        root.close();
      }
    }

    MetroButton {
      text: Lua.tr("Refuse")

      onClicked: {
        root.result = "";
        root.close();
      }
    }
  }
}
